import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from  '@/views/login'
import Home from '@/views/home'
import Yunwei from '@/views/yunwei'
import Yunying from '@/views/yunying'
import Layout from '@/views/layout'
import Hezuo from '@/views/hezuo'
import Dianwei from '@/views/dianwei'
import Quyu from '@/views/quyu'
Vue.use(VueRouter)

const routes = [
  {
    path: '/', component: Home,redirect:'/layout',  children: [
      { path: '/yunwei', component: Yunwei },
      { path: '/yunying', component: Yunying },
      { path: '/layout', component: Layout },
      { path: '/quyu', component: Quyu },
      { path: '/dianwei', component: Dianwei },
      {path:'/hezuo',component:Hezuo},
  ]},
  { path: '/login', component: Login },

]

const router = new VueRouter({
  routes
})


export default router
